package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.client.NacosClient2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2024/7/25
 * @description
 */
@RestController
@RequestMapping("nacos1")
public class NacosClient1Controller {


    @Resource
    private NacosClient2 nacosClient2;

    @GetMapping("m1")
    public String  method1(){

        String s = nacosClient2.method1();

        return "NacosClient1Controller ok  invoke NacosClient2 >>  "+s;
    }
}
